package com.kawins.result;

/**
 * 返回结果枚举
 *
 * @author rankai
 *         createTime 2017-04-2017/4/20 14:47
 */
public enum ResultEnum {

    SUCCESS(200, "操作成功"),

    SERVER_ERROR(500, "服务器错误"),

    OPERATION_FAILED(5000, "操作失败"),

    PARAM_ERROR(5001, "参数错误");

    private int code;
    private String message;

    ResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
